<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script th:src="@{/webjars/vue/2.6.12/vue.js}" type="text/javascript"></script>
    <script type="text/javascript" th:src="@{/webjars/axios/0.21.1/dist/axios.js}"></script>
</head>
<body>
<div id="app">

</div>
<script>
    var vue = new Vue({
        el: "#app",
        data: {
            user: []
        },
        mounted: function () {
            axios.get("http://localhost:9527/admin/user").then(function (response) {
                vue.user = response.data;
                console.log(response.data);
            })
                .catch(function (error) {
                    console.log(error)
                })
        }

    })
</script>
</body>
</html>